/**
 * Progetto Master Web Technology
 * Gruppo: Gianfranco Murador, Matteo Ferri, Cristian Castiglia
 */

package mwt.xml.xdbforms.schemalayer;

import mwt.xml.xdbforms.schemalayer.impl.SchemaDocumentFactoryImpl;

/**
 * @author Gianfranco Murador
 * Definisce una factory per i costruttori di documenti
 * XML-Schema corrispettivi ad una tabella del database 
 *
 * Mapping: DocumentoXML(1,1) --- Table (1,1)
 */
public abstract class SchemaDocumentBuilderFactory {

    private static SchemaDocumentBuilderFactory instance = null;


    public abstract SchemaDocumentBuilder newSchemaDocumentBuilder();

   

    public static synchronized SchemaDocumentBuilderFactory newInstance() {

        if (instance == null) {
            instance = new SchemaDocumentFactoryImpl();
        }
        return instance;
    }
}
